import axios from "@/api/request"


const patient = {
    add: "/back/patient/add",
    update: "/back/patient/update",
    delete: "/back/patient/delete",
    findById: "/back/patient/findById",
    findAll: "/back/patient/findAll",
    search: "/back/patient/search",
    findNumberByTreatmentStage: "/back/patient/findNumberByTreatmentStage",
    findNumberByHospitalizationStage: "/back/patient/findNumberByHospitalizationStage",


}
const wardRoundRecord = {
    add: "/back/wardRoundRecord/add",
    update: "/back/wardRoundRecord/update",
    delete: "/back/wardRoundRecord/delete",
    findById: "/back/wardRoundRecord/findById",
    findAll: "/back/wardRoundRecord/findAll",
    search: "/back/wardRoundRecord/search",
}

const nutritionPlan = {
    add: "/back/nutritionPlan/add",
    update: "/back/nutritionPlan/update",
    delete: "/back/nutritionPlan/delete",
    findById: "/back/nutritionPlan/findById",
    findAll: "/back/nutritionPlan/findAll",
    search: "/back/nutritionPlan/search",
    searchByPatientId: "/back/nutritionPlan/searchByPatientId",
}
const mealPlan = {
    add: "/back/mealPlan/add",
    update: "/back/mealPlan/update",
    delete: "/back/mealPlan/delete",
    findById: "/back/mealPlan/findById",
    findAll: "/back/mealPlan/findAll",
    search: "/back/mealPlan/search",
    searchByNutritionPlanId: "/back/mealPlan/searchByNutritionPlanId",
}
const enteralNutritionPlan = {
    add: "/back/enteralNutritionPlan/add",
    update: "/back/enteralNutritionPlan/update",
    delete: "/back/enteralNutritionPlan/delete",
    findById: "/back/enteralNutritionPlan/findById",
    findAll: "/back/enteralNutritionPlan/findAll",
    search: "/back/enteralNutritionPlan/search",
    searchByNutritionPlanId: "/back/enteralNutritionPlan/searchByNutritionPlanId",
}

const parenteralNutritionPlan = {
    add: "/back/parenteralNutritionPlan/add",
    update: "/back/parenteralNutritionPlan/update",
    delete: "/back/parenteralNutritionPlan/delete",
    findById: "/back/parenteralNutritionPlan/findById",
    findAll: "/back/parenteralNutritionPlan/findAll",
    search: "/back/parenteralNutritionPlan/search",
    searchByNutritionPlanId: "/back/parenteralNutritionPlan/searchByNutritionPlanId",
}

const api = {
    patient_add(params) {
        return axios.post(patient.add, params)
    },
    patient_update(params) {
        return axios.post(patient.update, params)
    },
    patient_delete(params) {
        return axios.delete(patient.delete, {params})
    },
    patient_findById(params) {
        return axios.get(patient.findById, {params})
    },
    patient_findAll(params) {
        return axios.get(patient.findAll, {params})
    },
    patient_search(params) {
        return axios.get(patient.search, {params})
    },
    patient_findNumberByTreatmentStage(params) {
        return axios.get(patient.findNumberByTreatmentStage, {params})
    },
    patient_findNumberByHospitalizationStage(params) {
        return axios.get(patient.findNumberByHospitalizationStage, {params})
    },

    wardRoundRecord_add(params) {
        return axios.post(wardRoundRecord.add, params)
    },
    wardRoundRecord_update(params) {
        return axios.post(wardRoundRecord.update, params)
    },
    wardRoundRecord_delete(params) {
        return axios.delete(wardRoundRecord.delete, {params})
    },
    wardRoundRecord_findById(params) {
        return axios.get(wardRoundRecord.findById, {params})
    },
    wardRoundRecord_findAll(params) {
        return axios.get(wardRoundRecord.findAll, {params})
    },
    wardRoundRecord_search(params) {
        return axios.get(wardRoundRecord.search, {params})
    },


    nutritionPlan_add(params) {
        return axios.post(nutritionPlan.add, params)
    },
    nutritionPlan_update(params) {
        return axios.post(nutritionPlan.update, params)
    },
    nutritionPlan_delete(params) {
        return axios.delete(nutritionPlan.delete, {params})
    },
    nutritionPlan_findById(params) {
        return axios.get(nutritionPlan.findById, {params})
    },
    nutritionPlan_findAll(params) {
        return axios.get(nutritionPlan.findAll, {params})
    },
    nutritionPlan_search(params) {
        return axios.get(nutritionPlan.search, {params})
    },
    nutritionPlan_searchByPatientId(params) {
        return axios.get(nutritionPlan.searchByPatientId, {params})
    },


    mealPlan_add(params) {
        return axios.post(mealPlan.add, params)
    },
    mealPlan_update(params) {
        return axios.post(mealPlan.update, params)
    },
    mealPlan_delete(params) {
        return axios.delete(mealPlan.delete, {params})
    },
    mealPlan_findById(params) {
        return axios.get(mealPlan.findById, {params})
    },
    mealPlan_findAll(params) {
        return axios.get(mealPlan.findAll, {params})
    },
    mealPlan_search(params) {
        return axios.get(mealPlan.search, {params})
    },
    mealPlan_searchByNutritionPlanId(params) {
        return axios.get(mealPlan.searchByNutritionPlanId, {params})
    },


    enteralNutritionPlan_add(params) {
        return axios.post(enteralNutritionPlan.add, params)
    },
    enteralNutritionPlan_update(params) {
        return axios.post(enteralNutritionPlan.update, params)
    },
    enteralNutritionPlan_delete(params) {
        return axios.delete(enteralNutritionPlan.delete, {params})
    },
    enteralNutritionPlan_findById(params) {
        return axios.get(enteralNutritionPlan.findById, {params})
    },
    enteralNutritionPlan_findAll(params) {
        return axios.get(enteralNutritionPlan.findAll, {params})
    },
    enteralNutritionPlan_search(params) {
        return axios.get(enteralNutritionPlan.search, {params})
    },
    enteralNutritionPlan_searchByNutritionPlanId(params) {
        return axios.get(enteralNutritionPlan.searchByNutritionPlanId, {params})
    },


    parenteralNutritionPlan_add(params) {
        return axios.post(parenteralNutritionPlan.add, params)
    },
    parenteralNutritionPlan_update(params) {
        return axios.post(parenteralNutritionPlan.update, params)
    },
    parenteralNutritionPlan_delete(params) {
        return axios.delete(parenteralNutritionPlan.delete, {params})
    },
    parenteralNutritionPlan_findById(params) {
        return axios.get(parenteralNutritionPlan.findById, {params})
    },
    parenteralNutritionPlan_findAll(params) {
        return axios.get(parenteralNutritionPlan.findAll, {params})
    },
    parenteralNutritionPlan_search(params) {
        return axios.get(parenteralNutritionPlan.search, {params})
    },
    parenteralNutritionPlan_searchByNutritionPlanId(params) {
        return axios.get(parenteralNutritionPlan.searchByNutritionPlanId, {params})
    },




}
export default api
